package com.bestcem.xm.ticket.dao.mapper;

import com.bestcem.xm.ticket.entity.mysql.TicketFlowDO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author zhangfeng <feng.zhang@idiaoyan.com>
 * @version v1.0
 * @date 2021/9/22 10:58
 */
@Mapper
public interface TicketFlowDaoMapper {

    TicketFlowDO findByTicketFlowId(String ticketFlowId);

    List<TicketFlowDO> listByTicketFlowIdList(List<String> ids);

    List<TicketFlowDO> listByTicketConfigId(String ticketConfigId);

    void insert(TicketFlowDO ticketFlowDO);

    List<TicketFlowDO> listByTicketConfigIdAndStatus(String ticketConfigId, int status);

    List<TicketFlowDO> listByTicketConfigIdAndTicketFlowIdList(String ticketConfigId, List<String> ids);

    void updateById(TicketFlowDO ticketFlowDO);
}
